
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Introduction · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="lessons/basics/basics.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">第一部分：基础</li>
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="lessons/basics/basics.html">
            
                <a href="lessons/basics/basics.html">
            
                    
                    基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="lessons/basics/collections.html">
            
                <a href="lessons/basics/collections.html">
            
                    
                    集合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="lessons/basics/enum.html">
            
                <a href="lessons/basics/enum.html">
            
                    
                    Enum 模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="lessons/basics/pattern-matching.html">
            
                <a href="lessons/basics/pattern-matching.html">
            
                    
                    模式匹配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="lessons/basics/control-structures.html">
            
                <a href="lessons/basics/control-structures.html">
            
                    
                    控制语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="lessons/basics/functions.html">
            
                <a href="lessons/basics/functions.html">
            
                    
                    函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="lessons/basics/pipe-operator.html">
            
                <a href="lessons/basics/pipe-operator.html">
            
                    
                    管道操作符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="lessons/basics/modules.html">
            
                <a href="lessons/basics/modules.html">
            
                    
                    模块(Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="lessons/basics/mix.html">
            
                <a href="lessons/basics/mix.html">
            
                    
                    Mix
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="lessons/basics/sigils.html">
            
                <a href="lessons/basics/sigils.html">
            
                    
                    魔符(Sigil)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="lessons/basics/documentation.html">
            
                <a href="lessons/basics/documentation.html">
            
                    
                    文档模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="lessons/basics/testing.html">
            
                <a href="lessons/basics/testing.html">
            
                    
                    测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="lessons/basics/comprehensions.html">
            
                <a href="lessons/basics/comprehensions.html">
            
                    
                    推导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="lessons/basics/strings.html">
            
                <a href="lessons/basics/strings.html">
            
                    
                    字符串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="lessons/basics/date-time.html">
            
                <a href="lessons/basics/date-time.html">
            
                    
                    日期和时间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="lessons/basics/mix-tasks.html">
            
                <a href="lessons/basics/mix-tasks.html">
            
                    
                    自定义Mix任务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="lessons/basics/iex-helpers.html">
            
                <a href="lessons/basics/iex-helpers.html">
            
                    
                    IEx辅助函数
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">第二部分：高级</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="lessons/advanced/erlang.html">
            
                <a href="lessons/advanced/erlang.html">
            
                    
                    和Erlang互操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="lessons/advanced/error-handling.html">
            
                <a href="lessons/advanced/error-handling.html">
            
                    
                    错误处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="lessons/advanced/escripts.html">
            
                <a href="lessons/advanced/escripts.html">
            
                    
                    可执行文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="lessons/advanced/concurrency.html">
            
                <a href="lessons/advanced/concurrency.html">
            
                    
                    并发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="lessons/advanced/otp-concurrency.html">
            
                <a href="lessons/advanced/otp-concurrency.html">
            
                    
                    OTP并发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="lessons/advanced/otp-supervisors.html">
            
                <a href="lessons/advanced/otp-supervisors.html">
            
                    
                    OTP Supervisors
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="lessons/advanced/otp-distribution.html">
            
                <a href="lessons/advanced/otp-distribution.html">
            
                    
                    OTP 分布式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="lessons/advanced/metaprogramming.html">
            
                <a href="lessons/advanced/metaprogramming.html">
            
                    
                    元编程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="lessons/advanced/umbrella-projects.html">
            
                <a href="lessons/advanced/umbrella-projects.html">
            
                    
                    Umbrella Projects
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="lessons/advanced/typespec.html">
            
                <a href="lessons/advanced/typespec.html">
            
                    
                    Specifications and types
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="lessons/advanced/behaviours.html">
            
                <a href="lessons/advanced/behaviours.html">
            
                    
                    行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="lessons/advanced/gen-stage.html">
            
                <a href="lessons/advanced/gen-stage.html">
            
                    
                    GenStage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="lessons/advanced/protocols.html">
            
                <a href="lessons/advanced/protocols.html">
            
                    
                    协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="lessons/advanced/nerves.html">
            
                <a href="lessons/advanced/nerves.html">
            
                    
                    Nerves
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">第三部分：ECTO</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="lessons/ecto/basics.html">
            
                <a href="lessons/ecto/basics.html">
            
                    
                    Basics
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="lessons/ecto/changesets.html">
            
                <a href="lessons/ecto/changesets.html">
            
                    
                    Changesets
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="lessons/ecto/associations.html">
            
                <a href="lessons/ecto/associations.html">
            
                    
                    关联关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="lessons/ecto/querying.html">
            
                <a href="lessons/ecto/querying.html">
            
                    
                    查询
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">第四部分：专题</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="lessons/specifics/plug.html">
            
                <a href="lessons/specifics/plug.html">
            
                    
                    Plug
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="lessons/specifics/eex.html">
            
                <a href="lessons/specifics/eex.html">
            
                    
                    嵌入的 Elixir(EEx)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="lessons/specifics/ets.html">
            
                <a href="lessons/specifics/ets.html">
            
                    
                    Erlang 项式存储(ETS)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="lessons/specifics/mnesia.html">
            
                <a href="lessons/specifics/mnesia.html">
            
                    
                    Mnesia 数据库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="lessons/specifics/debugging.html">
            
                <a href="lessons/specifics/debugging.html">
            
                    
                    调试
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">第五部分：程序库</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="lessons/libraries/guardian.html">
            
                <a href="lessons/libraries/guardian.html">
            
                    
                    Guardian(基础)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="lessons/libraries/poolboy.html">
            
                <a href="lessons/libraries/poolboy.html">
            
                    
                    Poolboy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="lessons/libraries/benchee.html">
            
                <a href="lessons/libraries/benchee.html">
            
                    
                    Benchee
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="lessons/libraries/bypass.html">
            
                <a href="lessons/libraries/bypass.html">
            
                    
                    Bypass
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="lessons/libraries/distillery.html">
            
                <a href="lessons/libraries/distillery.html">
            
                    
                    Distillery(基础)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="lessons/libraries/stream-data.html">
            
                <a href="lessons/libraries/stream-data.html">
            
                    
                    StreamData
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Introduction</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x7EEA;&#x8A00;"><a href="./">&#x7EEA;&#x8A00;</a></h1>
<h3 id="&#x7B2C;&#x4E00;&#x90E8;&#x5206;&#xFF1A;&#x57FA;&#x7840;">&#x7B2C;&#x4E00;&#x90E8;&#x5206;&#xFF1A;&#x57FA;&#x7840;</h3>
<ul>
<li><a href="lessons/basics/basics.html">&#x57FA;&#x7840;</a></li>
<li><a href="lessons/basics/collections.html">&#x96C6;&#x5408;</a></li>
<li><a href="lessons/basics/enum.html">Enum &#x6A21;&#x5757;</a></li>
<li><a href="lessons/basics/pattern-matching.html">&#x6A21;&#x5F0F;&#x5339;&#x914D;</a></li>
<li><a href="lessons/basics/control-structures.html">&#x63A7;&#x5236;&#x8BED;&#x53E5;</a></li>
<li><a href="lessons/basics/functions.html">&#x51FD;&#x6570;</a></li>
<li><a href="lessons/basics/pipe-operator.html">&#x7BA1;&#x9053;&#x64CD;&#x4F5C;&#x7B26;</a></li>
<li><a href="lessons/basics/modules.html">&#x6A21;&#x5757;(Module)</a></li>
<li><a href="lessons/basics/mix.html">Mix</a></li>
<li><a href="lessons/basics/sigils.html">&#x9B54;&#x7B26;(Sigil)</a></li>
<li><a href="lessons/basics/documentation.html">&#x6587;&#x6863;&#x6A21;&#x5757;</a></li>
<li><a href="lessons/basics/testing.html">&#x6D4B;&#x8BD5;</a></li>
<li><a href="lessons/basics/comprehensions.html">&#x63A8;&#x5BFC;</a></li>
<li><a href="lessons/basics/strings.html">&#x5B57;&#x7B26;&#x4E32;</a></li>
<li><a href="lessons/basics/date-time.html">&#x65E5;&#x671F;&#x548C;&#x65F6;&#x95F4;</a></li>
<li><a href="lessons/basics/mix-tasks.html">&#x81EA;&#x5B9A;&#x4E49;Mix&#x4EFB;&#x52A1;</a></li>
<li><a href="lessons/basics/iex-helpers.html">IEx&#x8F85;&#x52A9;&#x51FD;&#x6570;</a></li>
</ul>
<h3 id="&#x7B2C;&#x4E8C;&#x90E8;&#x5206;&#xFF1A;&#x9AD8;&#x7EA7;">&#x7B2C;&#x4E8C;&#x90E8;&#x5206;&#xFF1A;&#x9AD8;&#x7EA7;</h3>
<ul>
<li><a href="lessons/advanced/erlang.html">&#x548C;Erlang&#x4E92;&#x64CD;&#x4F5C;</a></li>
<li><a href="lessons/advanced/error-handling.html">&#x9519;&#x8BEF;&#x5904;&#x7406;</a></li>
<li><a href="lessons/advanced/escripts.html">&#x53EF;&#x6267;&#x884C;&#x6587;&#x4EF6;</a></li>
<li><a href="lessons/advanced/concurrency.html">&#x5E76;&#x53D1;</a></li>
<li><a href="lessons/advanced/otp-concurrency.html">OTP&#x5E76;&#x53D1;</a></li>
<li><a href="lessons/advanced/otp-supervisors.html">OTP Supervisors</a></li>
<li><a href="lessons/advanced/otp-distribution.html">OTP &#x5206;&#x5E03;&#x5F0F;</a></li>
<li><a href="lessons/advanced/metaprogramming.html">&#x5143;&#x7F16;&#x7A0B;</a></li>
<li><a href="lessons/advanced/umbrella-projects.html">Umbrella Projects</a></li>
<li><a href="lessons/advanced/typespec.html">Specifications and types</a></li>
<li><a href="lessons/advanced/behaviours.html">&#x884C;&#x4E3A;</a></li>
<li><a href="lessons/advanced/gen-stage.html">GenStage</a></li>
<li><a href="lessons/advanced/protocols.html">&#x534F;&#x8BAE;</a></li>
<li><a href="lessons/advanced/nerves.html">Nerves</a></li>
</ul>
<h3 id="&#x7B2C;&#x4E09;&#x90E8;&#x5206;&#xFF1A;ecto">&#x7B2C;&#x4E09;&#x90E8;&#x5206;&#xFF1A;ECTO</h3>
<ul>
<li><a href="lessons/ecto/basics.html">Basics</a></li>
<li><a href="lessons/ecto/changesets.html">Changesets</a></li>
<li><a href="lessons/ecto/associations.html">&#x5173;&#x8054;&#x5173;&#x7CFB;</a></li>
<li><a href="lessons/ecto/querying.html">&#x67E5;&#x8BE2;</a></li>
</ul>
<h3 id="&#x7B2C;&#x56DB;&#x90E8;&#x5206;&#xFF1A;&#x4E13;&#x9898;">&#x7B2C;&#x56DB;&#x90E8;&#x5206;&#xFF1A;&#x4E13;&#x9898;</h3>
<ul>
<li><a href="lessons/specifics/plug.html">Plug</a></li>
<li><a href="lessons/specifics/eex.html">&#x5D4C;&#x5165;&#x7684; Elixir(EEx)</a></li>
<li><a href="lessons/specifics/ets.html">Erlang &#x9879;&#x5F0F;&#x5B58;&#x50A8;(ETS)</a></li>
<li><a href="lessons/specifics/mnesia.html">Mnesia &#x6570;&#x636E;&#x5E93;</a></li>
<li><a href="lessons/specifics/debugging.html">&#x8C03;&#x8BD5;</a></li>
</ul>
<h3 id="&#x7B2C;&#x4E94;&#x90E8;&#x5206;&#xFF1A;&#x7A0B;&#x5E8F;&#x5E93;">&#x7B2C;&#x4E94;&#x90E8;&#x5206;&#xFF1A;&#x7A0B;&#x5E8F;&#x5E93;</h3>
<ul>
<li><a href="lessons/libraries/guardian.html">Guardian(&#x57FA;&#x7840;)</a></li>
<li><a href="lessons/libraries/poolboy.html">Poolboy</a></li>
<li><a href="lessons/libraries/benchee.html">Benchee</a></li>
<li><a href="lessons/libraries/bypass.html">Bypass</a></li>
<li><a href="lessons/libraries/distillery.html">Distillery(&#x57FA;&#x7840;)</a></li>
<li><a href="lessons/libraries/stream-data.html">StreamData</a></li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="lessons/basics/basics.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 基础">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"基础","level":"1.2","depth":1,"path":"lessons/basics/basics.md","ref":"lessons/basics/basics.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2019-11-05T02:25:51.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-11-05T03:01:22.004Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

